package org.zwy.gradetrack.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.zwy.gradetrack.entity.User;

/**
 * 用户服务接口
 */
public interface UserService extends IService<User> {
    IPage<User> pageUsers(Integer current, Integer size, String query, Long roleId);

    boolean assignRoles(Long userId, java.util.List<Long> roleIds);

    boolean removeRoles(Long userId, java.util.List<Long> roleIds);

    java.util.List<User> getUsersByRoleId(Long roleId);
} 